﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

/**
 * <lovedtracks user="ridomin" total="166" page="1" perPage="50" totalPages="4">
    <track>
        <name>My Funny Valentine</name>
        <mbid></mbid>
        <url>www.last.fm/music/Chet+Baker/_/My+Funny+Valentine</url>
        <date uts="1259701009">1 Dec 2009, 20:56</date>
        <artist>
            <name>Chet Baker</name>
            <mbid>1ba1d493-7114-45e2-b163-a36d49a0c065</mbid>
            <url>http://www.last.fm/music/Chet+Baker </url>
        </artist>

 * 
 * 
 * 
 * */

namespace Ridofy.LastFm
{
        [XmlRoot("lovedtracks")]
        public struct LovedTrackList
        {
            [XmlElement("track")]
            public Track[] Tracks;
        }

        //public struct Track
        //{
        //    [XmlElement("artist")]
        //    public Artist Artist;
        //    [XmlElement("name")]
        //    public string Title;

        //    // These elements are available in the API but useless and almost always null...

        //    //[XmlElement("mbid")] 
        //    //public string MusicBrainzId;
        //    //[XmlElement("url")]
        //    //public string Url;
        //}

        //public struct Artist
        //{
        //    [XmlText]
        //    public string Name;

        //    // Ditto here

        //    //[XmlAttribute("mbid")] 
        //    //public string MusicBrainzId;
        //}
    }

